6bd8defa11250364333d33af0e201b858426cca8,wicket/src/java/wicket/markup/html/form/FormComponent.java,FormComponent,getInputAsArray,#,305

Before Change


	 */
	public String[] getInputAsArray()
	{
		return getRequest().getParameters(getInputName());
	}

	/**

After Change


	 */
	public String[] getInputAsArray()
	{
		String[] values = getRequest().getParameters(getInputName());
		if (!isInputNullable())
		{
			if (values != null && values.length == 1 && values[0] == null)
			{
				// we the key got passed in (otherwise values would be null),
				// but the value was set to null.
				// As the servlet spec isn't clear on what to do with 'empty'
				// request values - most return an empty string, but some null -
				// we have to workaround here and deliberately set to an empty
				// string if the the component is not nullable (text components)
				return EMPTY_STRING_ARRAY;
			}
		}
		return values;